package com.google.code.p.restrpc.core.async;

import com.google.code.p.restrpc.AsyncRpcResult;
import com.google.code.p.restrpc.event.RpcEventObject;

/**
 * @author dz
 */
public class AsyncRpcRequestProcessedEventObject extends RpcEventObject {
    
    private AsyncRpcResult asyncRpcResult;
    
    public AsyncRpcRequestProcessedEventObject(AsynServiceRequest request,
                                               AsyncRpcResult asyncRpcResult) {
        super(request);
        this.asyncRpcResult = asyncRpcResult;
    }
    
    public AsynServiceRequest getAsynServiceRequest() {
        return (AsynServiceRequest) getSource();
    }
    
    public AsyncRpcResult getAsyncRpcResult() {
        return asyncRpcResult;
    }
    
}
